﻿<%@ Page Title="" Language="C#" MasterPageFile="~/admin/MasterPage.master" AutoEventWireup="true" CodeFile="DoiMatKhau.aspx.cs" Inherits="admin_DoiMatKhau" %>

<asp:Content ID="Content1" ContentPlaceHolderID="contentNoiDung" Runat="Server">
		<div id="main-content"> <!-- Main Content Section with everything -->
			
			
			<!-- Page Head -->
			<div class="content-box"><!-- Start Content Box -->
				
				<div class="content-box-header">
					
					<h3 style="cursor: s-resize; ">Đổi mật khẩu</asp:Label></h3>
					
					<div class="clear"></div>
					
				</div> <!-- End .content-box-header -->
				
				<div class="content-box-content">
					
					
					
					
						
							<fieldset> <!-- Set class to "column-left" or "column-right" on fieldsets to divide the form into columns -->
								
                    <div>
                        <form action="" method="post">
                        <fieldset>
                            <!-- Set class to "column-left" or "column-right" on fieldsets to divide the form into columns -->
                            <div class="formleft">
                                <p>
                                    <label>
                                        Mật khẩu cũ</label>
                                    <asp:TextBox ID="txtPassword1" TextMode="Password" runat="server" CssClass="text-input large-input"></asp:TextBox>
                                </p>
                                <p>
                                    <label>
                                        Mật khẩu mới</label>
                                    <asp:TextBox ID="txtPassword2" TextMode="Password" runat="server" CssClass="text-input large-input"></asp:TextBox>
                                </p>
                                <p>
                                    <label>
                                        Nhập lại mật khẩu</label>
                                    <asp:TextBox ID="txtPassword3" TextMode="Password" runat="server" CssClass="text-input large-input"></asp:TextBox>
                                </p>
                            </div>
                            <div class="clear">
                            </div>
                            <div class="clear">
                            </div>
                            <p>
                                <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="txtPassword1" Display="Dynamic" ValidationGroup="vdSanPham" ErrorMessage="Vui lòng nhập mật khẩu cũ!"></asp:RequiredFieldValidator>
                                <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="txtPassword2" Display="Dynamic" ValidationGroup="vdSanPham" ErrorMessage="Vui lòng nhập mật khẩu mới!"></asp:RequiredFieldValidator>
                                <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ControlToValidate="txtPassword3" Display="Dynamic" ValidationGroup="vdSanPham" ErrorMessage="Vui lòng nhập mật khẩu xác nhận!"></asp:RequiredFieldValidator>
                                <asp:CompareValidator ControlToCompare="txtPassword2" ControlToValidate="txtPassword3" runat="server" ErrorMessage="Mật khẩu xác nhận chưa khớp!" Display="Dynamic" ValidationGroup="vdSanPham"></asp:CompareValidator>
                            </p>
                            <p>
                                <asp:Button runat="server" ID="btnOK" CssClass="button" Text="Hoàn tất" OnClick="btnOK_OnClick" ValidationGroup="vdSanPham" />
                            </p>
                        </fieldset>
                        <div class="clear">
                        </div>
                        <!-- End .clear -->
                    </div>
								
								
								</fieldset>
							
							<div class="clear"></div><!-- End .clear -->
							
						</form>
					
				</div> <!-- End .content-box-content -->
				
			</div> <!-- End .content-box -->
			
			
			<div id="footer">
				<small>
				</small>
			</div><!-- End #footer -->
			
		</div> <!-- End #main-content -->
        <script language="javascript" type="text/javascript">
            function thanhcong() {
                alert("Mật khẩu đã được cập nhật!");
                window.location.href = "SignOut.aspx";

            }
            function thatbai() {
                alert("Mật khẩu cũ không chính xác, vui lòng thử lại!");
            }
</script>

</asp:Content>

